package cj.web.vote.domain;
/*
 *  
 *  
*/
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import java.io.Serializable;

/**
 * TODO: add class/table comments
 */
public class VoteSongRef implements Serializable {

    protected Integer id;
	protected Integer voteId;
	protected Integer songId;
	protected String type;
	protected java.util.Date createAT;
	protected java.util.Date updateAT;


	/**
	 * Default Empty Constructor for class VoteSongRef
	 */
	public VoteSongRef () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class VoteSongRef
	 */
	public VoteSongRef (
		 Integer in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Integer
     * 
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Integer aValue) {
		this.id = aValue;
	}	

	/**
	 * 	 * @return Integer
	 * 
	 */
	public Integer getVoteId() {
		return this.voteId;
	}
	
	/**
	 * Set the voteId
	 */	
	public void setVoteId(Integer aValue) {
		this.voteId = aValue;
	}	

	/**
	 * 	 * @return Integer
	 * 
	 */
	public Integer getSongId() {
		return this.songId;
	}
	
	/**
	 * Set the songId
	 */	
	public void setSongId(Integer aValue) {
		this.songId = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getType() {
		return this.type;
	}
	
	/**
	 * Set the type
	 */	
	public void setType(String aValue) {
		this.type = aValue;
	}	

	/**
	 * 	 * @return java.util.Date
	 * 
	 */
	public java.util.Date getCreateAT() {
		return this.createAT;
	}
	
	/**
	 * Set the createAT
	 * @spring.validator type="required"
	 */	
	public void setCreateAT(java.util.Date aValue) {
		this.createAT = aValue;
	}	

	/**
	 * 	 * @return java.util.Date
	 * 
	 */
	public java.util.Date getUpdateAT() {
		return this.updateAT;
	}
	
	/**
	 * Set the updateAT
	 * @spring.validator type="required"
	 */	
	public void setUpdateAT(java.util.Date aValue) {
		this.updateAT = aValue;
	}	

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof VoteSongRef)) {
			return false;
		}
		VoteSongRef rhs = (VoteSongRef) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.voteId, rhs.voteId)
				.append(this.songId, rhs.songId)
				.append(this.type, rhs.type)
				.append(this.createAT, rhs.createAT)
				.append(this.updateAT, rhs.updateAT)
				.isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.voteId) 
				.append(this.songId) 
				.append(this.type) 
				.append(this.createAT) 
				.append(this.updateAT) 
				.toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("voteId", this.voteId) 
				.append("songId", this.songId) 
				.append("type", this.type) 
				.append("createAT", this.createAT) 
				.append("updateAT", this.updateAT) 
				.toString();
	}



}
